package zut.wework.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import zut.wework.entity.BzksYx;
import zut.wework.entity.Result;
import zut.wework.mapper.BzksYxMapper;

/**
 * <p>
 * 本专科生院系信息 前端控制器
 * </p>
 *
 * @author 刘铭心
 * @since 2022-03-21
 */
@RestController
@RequestMapping("/wework/yx")
public class BzksYxController {

    @Autowired
    private BzksYxMapper bzksYxMapper;


    @GetMapping("/list")
    public Result getYxList(){
        return Result.success("success",bzksYxMapper.selectList(new QueryWrapper<BzksYx>()));
    }


}
